/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace DaveSexton.DocProject.Sandcastle.TopicManagement
{
	/// <summary>
	/// Provides event arguments for the <see cref="TopicFilterCollection"/> class.
	/// </summary>
	[Serializable]
	public class TopicFilterItemPropertyChangedEventArgs : PropertyChangedEventArgs
	{
		#region Public Properties
		public ITopicFilter Filter
		{
			get
			{
				return filter;
			}
		}
		#endregion

		#region Private / Protected
		private readonly ITopicFilter filter;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="TopicFilterItemPropertyChangedEventArgs" /> class.
		/// </summary>
		public TopicFilterItemPropertyChangedEventArgs(ITopicFilter filter, string propertyName)
			: base(propertyName)
		{
			if (filter == null)
				throw new ArgumentNullException("filter");

			this.filter = filter;
		}
		#endregion
	}
}
